using UnityEngine;
using System.Collections;

public class BorderCheck : MonoBehaviour {
	
	public enum BorderPointType{
		leftPoint,
		rightPoint,
	}
	
	public BorderPointType borderPoint = BorderPointType.leftPoint;
	
	void Awake(){
		SmoothFollow sf = Camera.main.GetComponent<SmoothFollow>();
	
		if(borderPoint == BorderPointType.leftPoint){
			sf.leftPoint = transform;
		} else {
			sf.rightPoint = transform;
		}
	}
}
